Fix new-deployment: check whether there is the existing deployment