Fixed an edge case where a broken SDP install with root-owned /p4/common
would cause gen_sudoers.sh to generate a sudoers file for root rather
than the appropriate OS user.
Added ShellCheck silender for terminate() function (called by trap).
Cosmetic code fix for newlines (introduced due to ShellCheck bug).