delete old prod dirs if necessary
add test for old dir removal, fix flow, use copy to avoid modif