Optionally read extension string from environment variable