TS-2562: improve init script support for Debian/Ubuntu