fix regex causing hang on debian mawk #97 #98

This is the regex that checks for man pages and perldocs.

Made the regex more specific, which fixes the problem.

The code sample sent to the Debian bug tracking system is in
prototypes/debian_mawk_bug.sh