FIX: Crash on non-existent head file.

FIX: Excluded '.git' from rsync.