Fixed sudo erroneously returning false (turns out the correct exit code is 0).