Fix the Makefile to not depend on $PWD.

Some shells (such as ksh on OpenBSD) don't set that environment
variable, so use the $CURDIR make facility instead.

Per gripe from Russel Stickney.