Upgrade to pathwatcher 1.0
Prepare 0.40.0 release