Change all pwd calls for $PWD variable

This avoids spawning additional processes as $PWD **always** contains
the current working directory.
Change all calls to hostname for $HOST or $SHORT_HOST variables