Merge "codegen: do not modify caller's working directory"