Make the CLI option -d useful (update to pullreq #185)

This one does what the other one does but makes it safe for multiuser installs with shared score and edit files.  It also refactors SET_UID into two constants: UNIX for unix systems and SETGID for setgid installs (this closes #226).