Merge pull request #9 from dak180/topic/cvs

Clean up the existing script for readability.
Update the mirror script to use git.
Do not bother updating if there have not been any changes.
Make sure the .git directory is excluded.
Fixes suggested by shellcheck.

http://www.shellcheck.net/