Getting this to work in Windows as well.

Just a path-separator tweak
Yes, that would be better.  There's some overall better solution that I've used that doesn't involve string manipulation at all, but I can't seem to recall it.