Adding ability to turn off tagging and patch bumping via environment variables. Also simplfied the code