[TASK] Code cleanup in getPackageArray function
[TASK] Replace "typo3-ext/" with a constant