Improvements to the "can't find module" error message (#2980)