create install_dir and set cwd for build script.