IDE-1573 fix redeploy problem for remote server