Added the possibility to save a build log

just adding a "log" flag at the end of the command

Change-Id: I17dfb681a8dc584c5c4bba5b019342592ea2ebef