fix ami cleaning commands