Fix a path issue on windows when trying to run tests through rake.
Fix Tempfile usage.
Close repositories before trying to delete their folders.
Close opened repositories.
Close opened repositories.
Close opened repositories.
Force a GC run.

Some of the reference tests fail otherwise because some file handles
are kept open and windows can't delete folders with opened files in them.
Make sure all repos that are opened are closed again.
There is no /home/ on windows. Just try to open some folder inside the rugged dir.
Add a gitattributes file disabling crlf conversion for specific files.
Don't perform crlf conversion on reflogs.
Test against Encoding.default_external.
Merge pull request #237 from arthurschreiber/windows-fixes

Windows fixes