Normalize realPath and fix a missing JSDoc property