lib/path.js: Use '===' instead of '==' for comparison

path: Use '===' instead of '==' for comparison

I've started rewriting node modules to practice typing and noticed that
you're evaluating this `if (samePartsLength == 0) {` condition without
type-checking. I thought I might submit a quick pull request to fix
this issue.