corrected the putative pwd() fix