Update how cd()  emits PWD
Update how cd()  emits PWD

We use the builtin `$PWD` variable and fail-back to an external call to `pwd`, we also emit to stderr rather than stdout to minimise unintentional assignment side-effects.
rawiriblundell/dotfiles