Better path method.
Ensure missing files get errors and files outside basedir do too.