Test if deploy dir exists before removing it