Fixed scripts for device oauth.