update makefile to fix wrong paths being put into .d files