fixed Makefile to search correct dependencies