Fixed auto watcher bug.

Error when constructing the various tasks to invoke when files
change. A better fix would be to inject these tasks rather than
recreate them. Someday.