Merge pull request #8 from petkaantonov/master

Make it work cross-platform.
replace path concatenation with path.join
just look for all patterns