Switch to require.main.require() for application module loading.