fix don't cut first part of dir
fix unc paths on unix