Split the version parsing into it's own function
Pass the environ dict into should_color
Add some tests to ensure behavior