Better basedir setup.