.gitlab-ci.yml: avoid using != to compare variables to support old versions