Use DO_PAT env var if available
Don't try OAuth2 in non-interactive env.
#50