Fixes #1725: CFileHelper::removeDirectory() has been added.
Fixes #2241: resetSequence() inconsistency.