Can't just swap out require.cache as require.cache is shared but require is not