I have feeling that this piece of code does not relate to the subject of the pull-requestion ("ability to specify excludes via file") and this is completely separate issue.