~ Installation script: work around Joomla! not creating menu entries under Components on some sites (mostly those upgraded with jUpgrade) (thanks, @nikosdion!)

See: https://github.com/akeeba/fof/commit/739230091b40ce2a93e85dff0b968c1fc9a68f2b
Refactored applyFixes()
Code style improvements