Added new `moduleToPath()` helper method