CDK-659. Logic for allow local metastore is wrong.