Replace backslashes with forward slashes on Windows when reading cwd.
Only replace backslashes with forwards slashes on Windows because backslashes are valid in Linux paths.
Merge pull request #329 from nzbart/windows_cwd_fix

Convert Windows backslashes into forward slashes on Windows when retrieving cwd