modify script for remove overlay config

Change-Id: Iaf91205d458e9517ebe20f2cbdeafe1a6fcba074