move the pandoc_available(...) call inside get_pandoc_version(...) as it also tested for availability