Let it work with non local file storages
Merge pull request #5 from vitaly4uk/master

works with non local file storages