Added support for new excludedir configuration option.