fix module path resolution in load() to match require()