makes changes to work with CentOS, which doesn't have some of the functions used in the init script