Replaced PWD with CURDIR in makefile