BLD: enhancements to print_versions.py