EZP-22210: Made the install script safer
EZP-22210: Added composer script handler for legacy extensions installer