Return a writable documents directory on iOS. Contributed by att.