build: Fix bashism in compile all script.