update regexp so that any dots inside the given path cannot match here
Merge pull request #2 from shyouhei/master

regexp bug fix