Update module searching to fix windows bug