Recursively search parent environments