ModuleUtil#normalisePath(): the normalised path string is generated without unnecessary memory allocations.