Adjusted to reflect node_env logic