Add some defense to #312 check for presence of 'module'