Make the Refresh File Tree command clear caches

This ensures a full refresh.

As suggested in #7929.
Ahh, that makes sense. The old code called `refreshFileTree` a lot more often than the new code, which only calls `ProjectModel.refresh` when the event does not include a directory.