fixes `anonymous: true` option

newer versions of node won't take `undefined` or
`null` in path.join();.

when `moduleName` was null the amd compiler would
trip up on it, so we set it to empty string