Improved support for environment variables and configuration files, and standardized default behaviors