Fixed and improved the excludePaths.