refactor(rootdir-info): check of root directory

In order to run the cordova-icon, the root flyer of the hook process should be the app's root folder.