Add fallback to pre-existing local require

fallback to a pre-existing externally injected require