Simpler triple comparison, avoiding regex issues that appear on windows.