Some additional error messaging has been added around the code where finding/requiring the foreign module is done.