Fix app build for Cordova

Caught by a zillion tests, oops.  But not by --prepare-app!