Print script output in addition to logging.

same as f4ef3dcb7d7dda2fba5fb796909761106d42dcc0