Added check exists dir