script/autobuild.py: define cwd for builder and avoid chdir