Filter out non-existent directories