Pull in branch and token from env vars more failsafely