Fix Authenticate and Refresh script [tested on new official launcher 1.2.1]