Make the version check compatible with GNU grep