makefiles: minor fix (use COREPATH in Makefile.targets)