Merge pull request #38 from sapegin/patch-1

paths cannot be a string. Fix #36.