Fix cleanupAppState

* wrap the path to sim in quotes for find
Merge pull request #2288 from dandoveralba/fix-reset

Fix cleanupAppState