fix #23. init scripts were broken for redhat-based ditros.