Using matchBase option of minimatch to proper exclusions and keep matching

Yesterday I lost same data because this, so hopefully this PR will solve all problems with exclusions and keeps definitions.