Don't look for a Makefile unless you need one.

closes #3491