Load module from string using require or import.