fix changing relative path to absolute under non-unix OS

Absolute path may not necessarily start with pathSeparator