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.