Fixed deployment scripts

Change-Id: I470042c401b8290d535ce07802870f4c5004b308