Improvements for Windows compatibility

* Fix issues with line endings when project is git cloned.
* Fix tests.
* Improve shell script so it runs correctly via sdb shell on Windows.