Make root access optional

Allow `/usr/local` to be overridden by a `USR_LOCAL` environment
variable.

Use `sudo` only if user is in sudoers file.

Allow `/etc/hosts` to be overridden by `HOSTALIASES` environment
variable.