Made --private or --dir a config setting. Fixed no permissions fail