Validate the output from PWD.