Use tools.mk in Makefile

This also fixes dialyzing the tests, if you set the path to riak_test.