workaround to ignore directories which names contain a slash character