Fix path issues when running on windows

When running on windows, the target file paths are concatenated using the environment's file separator (which is '\' on Windows).
When using filesSpec for uploading specific files, the generated URL can be for example:
https://api.bintray.com/content/myuser/myrepo/mypackage/1.0.0/foo\bar\myfile.ext
(note the slashes in the lasts parts)