Wait, why don't I just call pandoc_available(...) from get_pandoc_version(), before line 131? Should simplify things no?