improved build script to install composer and deps