Change the way composer global is install and update.

Signed-off-by: crynobone <crynobone@gmail.com>