Watch dependent files (fixes #766)

This fixes issue #766