Add support for local conf file
Fix permissions (again)