Allow authentication for nested modules

Altered how `$itemName` was obtained to replace `\` with `.` in module ids for nested modules