Avoid useless output files in gettext mode

The previous coding for the po-mode check left a `messages.po` file lying around wherever it was run.  Add the appropriate options to `msgfmt` to avoid that.