Fix in pkgutil: don't call pipes.quote() on None.

In this function, 'site' may be None, which will cause an exception
if it is passed to pipes.quote().
pkgutil: use run_command helper function in package_installed().

For consistency with other functions.
pkgutil: avoid use_unsafe_shell.