use $CURDIR intead of $PWD in Makefile