Fix paths in windows

Also fix error messages.