jq: fix versioned/unversioned docdir problem