Change all pwd calls for $PWD special variable

This avoids spawning additional processes as $PWD **always** contains
the current working directory.