Fix stderr redirection of check_versions