Remove obsolete debug code.
Fix detection of file changes.