Debian compatibility

I've made changes to make this module compatible with Debian. Also I've made the configuration exclude variables which are not set.