Update check script

* GitLab Shell 1.7.1 is required
* Global projects are not supported (refs #5152)
Merge pull request #5163 from hiroponz/update-check-script-in-stable-branch

Update check script in stable branch