Fix monitoring of PWD