build: a more portable way of finding waf in makefiles