proper basedir path