only pass name and dir when calling require.define

Makes __filename and __dirname easier to support. The server knows all
this info at build time.