Fix a bug with overwriting original files if cacheDir is empty, resoves #181
Merge remote-tracking branch 'origin/0.x'

* origin/0.x:
  Fix a bug with overwriting original files if cacheDir is empty, resoves #181