Find the closest parent directory with a Makefile before running make.