The old-style api.humbug is deprecated, so we rewrite the path for things to work correctly. (imported from commit 360282b70fab1ad9d9d517157fc4fe06f9acd6a2)
(imported from commit 631f3c7320192a502b60bc4c4838d068ed60ee76)