Fix reduceLeadingDots for modules that specify ".." or "../.." for directory-style dependencies and add some tests.