making compileFile resolve file paths relative to the baseDir