Update buildscript.

Automatically update composer, force failure if any command fails,
reduce redundancy.