Remove trailing slash from node_modules entry.