improve check for sys pandoc