m8: correct setup-makefiles script

Change-Id: Idaa521fee26bf026c80fe95e02ace35261790d40