windows-compatible module discovery, fixes #142