Prefer globals over module environments in loading