env: Change env_match() to static and remove from header