Fix production version building script