Fix deploy command - forgotten wait() calls