A note on the homotopy type of certain gauge groups