Fixed build errors.

- Errors were occurring on systems that did not have an older version of cordova
  installed.