When a module isn't present we raise a modulemissing error which does not appear to be caught correctly. We check for the presence of files before avoiding directory traversal.