Check for exports as well as module, closes #315
3.18.1