added support for ubuntu, debian

Please add my changes for supporting ubuntu and debian distributions.