GAE file stream fallback added (refactor)