PWD is not guaranteed to be defined.

Switch to 'shell pwd' as per http://askubuntu.com/questions/232840/trouble-compiling-a-kernel-module-in-linux.