fixed config.h and moved it in tools subdir