Making debian init script bourne shell compatible

Using backticks instead of bash only $() to execute a shell command

Closes #3691