Cmd fixes

Modified PatchExecutable such that it works on windows. Added tests as well as a small fix in home_tests.
It would be nice if that happened yes, but as far as I've tried it it's not true. The script is executed using cmd and the output contains \r\n.

We could try to implement a different checker to do this without using switches directly in the code(something like the SamePath one) but I'm not sure if this problem appears in that many places to justify a dedicated checker.