Fixes to allow starting as non-root


I stumbled on two new issues trying to start m5nr as non-root.  These should address it.