Fix replacement of environment variables with quoted keys.