Merge pull request #201 from aeber/feature_permissions
allow setting the mode of $config_dir and $config_file