doc: fix build when sphinx reports version to stderr