MT#5879 Make generate_invoices.pl executable.

(cherry picked from commit dfd4f663bedef428edfe5371ba0dd75b7ac5adc6)