use BRE instead of ERE to support FreeBSD better
fix bug that was causing mkman to screw with the section headings
remove one last use of `sed -r` and fix replacement snippet to apply to the plain non-Debianised package