for_each_loose_file_in_objdir: take an optional strbuf path