When detecting installed packages, ensure that we check both purelib and platlib site directories when determining if a package is a standard package.