Don't output a '.' if no prefix is being used

Fixes #10