If the tempDir is not writable, try the system's global cache dir

This fixes #51
to avoid issues with cross-drives renaming, which is not supported by PHP or by the Filesystem component: https://github.com/symfony/symfony/issues/12533