Guess whether to use su/sudo with pip

We might be using a virtualenv or a non-system build of Python. We first
stat the site-packages directory, and only go root if that belongs to
root.