fixed require() caching for relative paths