Removing duplicate entries from extra paths