fix localedir detection for Win, Mac and Linux with WL_PORTABLE