added HOME variable to build_script generation