Fixed logic for checking for existing OAuth token file.
Fixed logic for checking for oauth client key and loading from system environment if null