Fix accessing the project repository path in check task

Fixes #2496
Fix bug in OS detection in check task
Add a check whether repos_path is a symlink
Fix check for outdated config file
Fix checking for the recommended Gitolite version

Fixes #2475