issue #3090:refactor getTargetPlatform() and getCurrentLanguage() on linux