Fixes for localization functionality

Fixes for https://github.com/Block8/PHPCI/pull/678