Fixed module resolver bug where extension is already present in relative requires.