git-remote-hg: Fix . at end of ref

Any Mercurial tag/branch/bookmark that ended with a period would be
rejected by fast-import.  The repository could be cloned, but any
further fetch would fail.

Use a similar trick to the space handling, but only when the period is
at the end of the ref.

Probably need a more general solution to this problem.

Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
Ignore generated manpage

Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
Makefile: Avoid non-portable install -D

BSD install doesn't understand the -D option.  Use a separate install
command to create the directory (with the -d option) before installing
the file.

Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>