Add back in the ability to use a github mirror directory

Also bring the test coverage of sources.py up to 100%!

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>