Added support for update deployment. Main deploy script cleanup