check if dir exists before pulling