Fix for debian environments

Hi, 

Now you module works well with ubuntu, but i use on Debian and i make this changes for working also. And also added changes for other pull request. 
Because it's a polite mode for use on this case https://docs.puppetlabs.com/puppet/latest/reference/lang_conditional.html#selectors