Fix re-watching after npm install. Closes gh-479.