mod_development: Fix crashing file watcher process while editing templates

Also only flush the cache of a particular site when a new template
within a site has been found.