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