Improve detection of dependency support for make