Fix bug with fallback in the require shim