fixed the language pack upgrader to works well with WP 4.0, closes #6183