Improved cordova compat

See https://github.com/maciel310/angular-filesystem/pull/5