fixed performance when including a directory that does not exist