Incorrect check for definition of handler script when checking modification times.
Separate htdocs directory and make fallback resource handling uniform so always use handler script.