fix for issue #2732 - have not tested on windows

all occurrences of '/' were replaced with os.sep. This should address issues with broken links on Windows, but I don't have access to a Windows machine to test this. Can someone with a Windows machine please test before merging?