Modify after_success.sh for permissions fixing