Throwing errors and preventing creating extension pack if files missing.

Same kind as https://github.com/joomla-projects/com_localise/pull/117
Also corrected some code style