Try module patterns in file order. Fixes #30