Fix behat tests on windows

in the diff file for windows, expected paths should have a backslash as relative path.
The hack is really ugly, but it passes all tests on windows

There was also a minor bug that did not calculate the relativePath if working directory had a trailing slash