Augment node's require() to globally handle AMD modules