Fix RealPackageManager() when first word is "env".

Because the index of the first space after env is 3, not 4, we need to
make sure that it doesn't depend on the "< 4" check.
Fix consecutive spaces in RealPackageManager().

We should skip over them.