Ensure logging from tools writes out properly

The tools weren't actually writing output to stderr because set_up_logging never accounted for `__main__`. Let's fix it!