add --ignore-dirs config option to specify directories to ignore when searching for files/dirs
use options.ignore_dirs where applicable