fix #1 by replace `String.prototype.search` with `String.prototype.indexOf`
Merge pull request #2 from weilao/fix/filename-with-metacharacter

fix #1 by replace `String.prototype.search` with `String.prototype.index...
update package version
clean up variables
update readme.md