Better parsing of check_commands with escaped exclamation marks