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. 
New line is missing.