Okay, so I found the problem: the emulator I'm using only runs with the android on an "external sd card," so as such I had to change the cordova.file.dataDirectory to cordova.file.externalDataDirectory, and then I could find the file. Cordova is indeed undefined because it was running in the browser.
Now, my next challenge: async!