Escape variable in nginx post-deploy script

`$http_upgrade` is supposed to be a variable set by nginx. It was now substituted by nothing.