Environment variables now override config file

Fixed a bug where configuration values stored in the JSON config file could incorrectly override environment variables when the same setting had multiple possible names. Now environment variables are properly prioritized across all their aliases, case-insensitively, before checking the config file.