Added debugging for cleanupScript command