Add support for ignoring directories