This used to happen inside the inspectFile() done block -- moving it out here introduces an assumption that inspectFile() will always complete synchronously (which I think is actually true under the current usage of runs()... but is definitely not always true, so perhaps it's better to leave this inside the block as before).