fix tar in scala