Support module as alternative to filename and bail out on missing function/filenames