fix $PATH override bug