Prepare a test for bug #18056 / bug #18834
Fix for bug #18834
Also do not truncate cache file if it is a symlink
Merge pull request #30 from sad-spirit/bug-18834

Fix for bogus "symlink attack" error on Windows (bug #18834)