fix $(CURDIR)

Change-Id: I254f00f3ccf1dc0500895b9c85137d14afb41412
Reviewed-on: http://review.couchbase.org/29958
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>