Fix forEachRepo for nested calls

`coho repo-reset -r tools`
Was failing with the following error:
cd: no such file or directory: ../cordova-lib/cordova-lib

Exposed the base working dir from apputil via
apputil.getBaseDir()