Fix typo: test against filePath not global path, when resolving id.