Call fn on each file. Fixes #14.