bug: use BASH as the interpreter for the rebuild file to see if that improves compatibility