Use absolute paths to commands when configuring them using sudo

This should offer a more complete fix for #59.

/cc @spul