Update deployment script to run 'apt-get update' and properly redirect stderr to stdout.