Fix tests to run on Windows platform

Changed line endings to LF and added .gitattributes file to enforce LF
line endings in future. Changed SbtBuilderTest to correclty check
classpaths on both Windows and Unix systems. Proper try/finally for
tests using createProjects added.

Fixes #1001981