Fix for node-webkit

Making the environment check in loaders.js more specific to account for environments that have both node and browser like features (like node-webkit).