Added heuristic to accept files modified within last 60 seconds, which should catch files currently being downloaded. Also added debug logging to diagnose why validation fails. Still debugging - need to test with logs to see what's happening.