thin install - systemD support

As discussed on google groups, many modern linux systems have migrated from old SystemVinit to SystemD, which makes our install script outdated

This is the commit that autodetects which one of them is in use and make the change appropriately.

p.s.: I have tried to conform to the existing coding style.