NSW driver jailed for running down friend