cd completion: handle not accessible directories