Fix for the BASH pre 4.0-ish lower-to-upper in WM detection.