Fix issue with refactored build to use the correct module name

Fix issue with refactored build to use the correct module name in the final 'require' statement.

Fixes #481