Fix building tar in deployment