append given basedir argument with '/' if not given