Backport of "Added excluded files option" to 0.99.7.1