Added old way hook, to ensure tests passing and compatibility with leiningen 1.x.