Strip out commands not relevant to de-deduplicating files