Updated build script to provide more debug output.