PLATFORM-313 Make rebuildLocalisationCache.php use proper exit codes

Fix for [PLATFORM-313](https://wikia-inc.atlassian.net/browse/PLATFORM-313).

/cc @Wikia/platform-team