Modified code for cordova 3.x
replace ctx with cordova.getActivity()
More changes for 3.x
Added TAG. Detect directory create didn't work.
Need WRITE_EXTERNAL_STORAGE permission
Move WRITE_EXTERNAL_STORAGE permission to correct spot in AndroidManifest.xml
Add the slash between the dir and file name. I don't know how this ever worked before.
Update README.
Fix README to reflect the correct repo.
Merge pull request #1 from johnnylambada/master

Updated for Cordova 3.x. Fixed some bugs along the way.
Thanks to @johnnylambada for making the changes.