Fix environment variable typo in main function