set -e in patch_profile.sh