Replaced $PWD by `pwd` for sh compatibility