Fix for WM case-sensitive that doesn't involve declare and makes use of different versions of BASH.