Fixed deployment scripts (for Ubuntu)

Change-Id: I3cd37525ab039fe17061419c390b260223821f38