check dir exists