Fix building script for --all