Don't use GNU extension in sed script.

Simplified the rules to match only comments used in the hints scripts.