fixes #212: test require.extensions instead of using process.title

to determine whether we add a function to register the compiler with
require.extensions