Clean up lib/pathwatcher.js