Use globalInstallDirs as the sandbox location.

Reverts 7b2e3630f2ada8a56bf9100144e1bb9acbe6dc6a. Instead of temporarily setting
'configUserInstall' to 'False' in various places, we now just check that we're
not in a sandbox when deciding whether we should use 'rootCmd'.