Added debian support.

Also fixed config file permission on RHEL systems.