cleanup device folder and local manifest before build

Change-Id: Ieb45ba4fcf18c9d5c28e7610250a4de758877335