check for Makefile in detect