Fixed over-complicated and poorly performing file system iterator. Each file is only touched once now.