Fixed loading modules that were non nodejs files. Fixes #4