make directory if not exists before starting work