use minimatch package for include and exclude matching
share some option specs between search and replace