Fix regression in test_langs.php

Commit 78cee358 added file Web.config to plugins and lang folder.
test_langs.php treated the file as a plugin folder and a language file.
Merge branch 'fix13-test_langs' of github.com:atrol/mantisbt into atrol-fix13-test_langs
Fix #17510: regression in test_langs.php
Use static variable over global variable.

This is a backport of code previously sent to github in 2011,
but not yet in master.