checking dir existence