[chewing] protect data dir detection