bugfix: when loading a cached module the dependenciesFound wasn't cleared, so it could lead to the dependencies not being written.