Fix to the MacOS app bundle redirect code