Update README.md
Extract environments logic