Build path fixed

The build path was previously broken as any require() calls will
invariably return undefined during build. This and a shadowed name
caused the build map to be empty. This now builds correctly.