Install man files under $(PREFIX)

Patch to move the install location for man pages to something under $(PREFIX), in common with $(bindir). Also try to create $(mandir) if it is missing.