Fixing bug where it was skipping paths when looking for module