Changed all `sudo` calls to `su --session-command=...`

Currently running the service script we see the message:

    sudo: sorry, you must have a tty to run sudo

This commit fixes the problem.