Refactoring, adding switchCordovaVersion