Fixing environment variable parsing in PAL
The `compare` function used in MiscGetenv checks if the first argument
is a prefix of the second argument, but MiscGetenv was passing the longer
argument (e.g. "HOME=/users/foo") first, meaning that it would never
find any environment variable.