SaveAs - fix bug when directory not exist.