Improve detection of dependency support for make

(https://github.com/extend/erlang.mk/pull/73 closed by mistake)