move dependency checking for tools to __main__()