fixed POSIX compatible check if PATH had changed