Avoid extra separators on Mac

On Mac, the Quit and Preferences entries are moved to the
"application menu" (or whatever it's officially called), so
don't put lone separators without anything after them.
Merge pull request #153 from frankosterfeld/work/osx-2

Avoid extra separators on Mac