Fixed matching of includes and excludes for reading from directories