Remove use of sudo inside script in favour of starting script with sudo