[ticket/11699] Properly exclude the .git directory. Namely missing dot prefix.

PHPBB3-11699
[ticket/11699] Also exclude the phpBB/cache directory.

PHPBB3-11699