Fix broken sed in deploy.sh because of missing double-quotes prio to eval

Fix the broken sed by adding escaped double-quotes arrounds the set patterns.
Also change tee to redirection.