add change for debian / ubuntu support

Hi,

I have added support for Debian/Ubuntu.
It would be great if you can add this code.

Grtz