Slash missing if generating alternative names. Fixes #789