updated command for removing old output directory when running on the cluster