Add debian support, fix syntax bug from RHEL version by zerlgi