fix up build_tar type, and add bash completion