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.
(cherry picked from commit 5541d05dddd74aa827ee3dc228fea0ec4a2c0f9b)