fix wipeandadd for rightscale and old bash