Only call done() once even when there are multiple files

Fixes #4