build: use local oauth.json if it already exists

Closes #784