reinstate support for upper-case npm_config_* environment variables

This fixes a regression introduced in e5dcca4.