Debian support for agent class

I did not tested everything but this class seems to work for Debian (7 at least) hosts as well...