correct basedir paths