EZP-22210: Made the install script safer