iOS file opening fix due to the new cordova file plugin