fixed download local/server win/unix compatibility