check if config dir and task dir exist