builtin-mktree.c: use a helper function to handle one line of input