added support for debian 6/7