+ refactored to make looksLikeDir() a reusable method.