move run_doctests utility to top-level tools directory