Support being given a directory for the output path (-p flag)

This should fix #656 and maybe a few other things.
Fixes an issue where gem-version-bins is enabled but there are no binaries