When inferring the module name from the file path for "dub test", use the longest matching import path instead of the first match.

This fixes the inferred module name in case of multiple overlapping import paths.