Fixes requireLocal to properly fall back to global require