added function to check file permissions for config (if it's used)