Get application settings from environment variables and fallback to .cfg file