Allowed datadir giving false positive. fix #3399