fixed $PATH changing detection