Make test-require-resolve case insensitive

This is an alternative fix for the issue that f6e5740 had intended to fix.
It's needed because f6e5740 has been reverted in e24fa83.
See also https://github.com/node-forward/node/issues/20 and #100

@indutny or @bnoordhuis, can I get your review on this?