CLI: fix file permissions for config files