fix jautopkg trylocal and loop