Use label instead of partition in util.inputlist.
Fix a missed case of dir index parsing.