adding error handling for file copy in build.sh