This is simpler and avoids unnecessary calls to `env::current_dir`.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.