Fix logic to determine whether to sync OUTPUT_DIR with OUTPUT_CACHE_DIR.

The original change in 14b04a4 was flawed because filecmp.dircmp doesn't traverse
subdirectories.