Update pathwatcher and make optionalDependencies