Replace $PWD with `pwd` for sh compatibility