I don't understand why you need to search for the cordova-coho directory. Since the script needs to be invoked from the parent of cordova-coho, it should be a simple direct placement.