in reply to `pwd`, sh, and the amd automounter

What does this say:
perl -e 'print "$ENV{PWD}\n"'
or try using Cwd with some of its various options for getting current working directory.