Bug fix in ap_provision writer - check in json directory