Is it not be better to separate the Debian and the Redhat families by making a new OS_REDHAT const?
Commands are almost the same, but this can avoid your double detection in functions.inc.sh (l. 155 and l.314).