Added module name and namespace support for amd style modules