modify build.sh -add merge file function