"$PWD" = "PWD", >! doesn't work, echo is redundant. Fixed all.
Merge pull request #1699 from Bercio/patch-1

>! doesn't work with noclobber. changed >! to >| and  echo "$PWD" to pwd(redundant)