fix issue 204 by escape special characters in root path such as '(', ')'

This change is to fix issue #204 to use Regexp.escape to resolve regexp special characters like '('.