Fixed by new commit. smsGatewayUrl is a seperate entity given by chef that has to include %variables% which will be replaced (required vars are listed in the top part of the script).