Allow overriding of project root for --compile with --project-root.