You are repeating code... this `cmd = ["pandoc", "-v"]` is called inside `pandoc_available`, so what about to check the version **inside** the `pandoc_available` function??