Add the build_dir to globals.local in automatic regression program.