Move the required vars check after the options parsing. This allows --help to work without setting any required environment variables.