Bianchi I in scalar and scalar-tensor cosmologies