Fix handling of PATH so that it doesn't get duplicated on subshells.
Forced to do this by latest Homebrew which doesn't seem to read /etc anymore.