diff --git a/.gitlab/ci/scripts/release_s3.sh b/.gitlab/ci/scripts/release_s3.sh
index 49aa367ddbffc96eabeda64b1d3e3b9c2d71be67..636186c68b7408e67274f022a25a25cf73cc2d4e 100755
--- a/.gitlab/ci/scripts/release_s3.sh
+++ b/.gitlab/ci/scripts/release_s3.sh
@@ -1,10 +1,10 @@
 #!/usr/bin/env bash
 
-set -eo pipefail
-
-LATEST_STABLE_TAG=$(git -c versionsort.prereleaseSuffix="-rc" tag -l "v*.*.*" --sort=-v:refname | awk '!/rc/' | head -n 1)
+LATEST_STABLE_TAG=$(git -c versionsort.suffix="-rc" tag -l "v*.*.*" --sort=-v:refname | awk '!/rc/' | head -n 1)
 echo "Latest stable tag is: ${LATEST_STABLE_TAG}"
 
+set -eo pipefail
+
 __aws_s3_sync() {
   local source="$1"
   local target="$2"
diff --git a/go.mod b/go.mod
index 0f4ead5939cd5cbb1d9f6ff46574b95b4fe3ebb0..5d4b3729617dc9975b52e2f7039d2f666293fd56 100644
--- a/go.mod
+++ b/go.mod
@@ -33,7 +33,7 @@ require (
 	github.com/bugsnag/osext v0.0.0-20130617224835-0dd3f918b21b // indirect
 	github.com/bugsnag/panicwrap v0.0.0-20160118154447-aceac81c6e2f // indirect
 	github.com/davecgh/go-spew v1.1.1 // indirect
-	github.com/dgrijalva/jwt-go v3.0.1-0.20160831183534-24c63f56522a+incompatible // indirect
+	github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
 	github.com/docker/distribution v2.8.2+incompatible // indirect
 	github.com/docker/go-connections v0.4.0
 	github.com/docker/go-units v0.2.1-0.20151230175859-0bbddae09c5a // indirect
diff --git a/go.sum b/go.sum
index 883145c0de9e65fd1688328d27d5e80d528d0026..05abc4af4e4d7a84f60626ff7b67b9f88e805ef2 100644
--- a/go.sum
+++ b/go.sum
@@ -31,8 +31,8 @@ github.com/codegangsta/cli v1.11.1-0.20151120215642-0302d3914d2a/go.mod h1:/qJNo
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/dgrijalva/jwt-go v3.0.1-0.20160831183534-24c63f56522a+incompatible h1:ZaDz72vl6QxbdXokqXGO2JCa2tW+Bg2szKgDFj381Ro=
-github.com/dgrijalva/jwt-go v3.0.1-0.20160831183534-24c63f56522a+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
+github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
+github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
 github.com/digitalocean/godo v1.0.1-0.20170317202744-d59ed2fe842b h1:aXxD+fwKx8OmSO88tAzJyu9LTB3QX/2bNZT2070H7TU=
 github.com/digitalocean/godo v1.0.1-0.20170317202744-d59ed2fe842b/go.mod h1:h6faOIcZ8lWIwNQ+DN7b3CgX4Kwby5T+nbpNqkUIozU=
 github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8=