Use tools.mk in Makefile

This also fixes dialyzing the tests, if you set the path to riak_test.
Merge pull request #281 from basho/feature/tools.mk

Use tools.mk in Makefile