check all parent dirs to find .env