Improved error message for invalid env var names