$(PWD) is no longer available on some platforms

Closes #7, with thanks to @mask8