Cache more files, correctly ignore log directories