In the file SpecialHtml2Wiki.php, the function command_exists contains the following line
$exists = ( PHP_OS == 'WINNT' ) ? 'where' : 'command -v';
Under Gentoo linux, this command fails to find commands located in /usr/bin/. (Under Gentoo, pandoc is installed here.) It can be fixed by passing command -p -v instead.