Fix modules regex

Fixes #1 by not allowing two `::` in a row.