CLI: Report about invalid realm/store names nicely

Generate nice messages when invalid store/realm names are passed to
CLI commands, instead of aborting and dumping a traceback.