refactor(rootdir-info): check of root directory

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