You switch to app_user before running chmod, and this user very probably don't have permissions to run the script. Try running chmod +x before
USER app_user