Fix appstore applescript to handle partial login