function toPosixPath(pth) {
    return pth.replace(/[\\]/g, '/');
}
toPosixPath converts the given path to the posix form. On Windows, \\ will be
replaced with /.

@param pth. Path to transform.
@return string Posix path.