Fixed trailing slash trim on Windows.

Couple places currently hardcoded to trim Linux-style slash from paths, which causes broken resource and others link on Windows.