added improved check when deployment script is unable to pull from git