now, when a job fails, prompt the user to enable the job (in case it's disabled); also add better git/jenkins api querying and parameterize script so it works for master branch too