added support for centos7 and debian6