Changed the way the tools dir is taken