fixed excluded dirs bug