[WM] fix my logic in bash comparisons