Shove your knees out more on the way down and make sure they stay out at the bottom and on the way up. Go grab a foam roller from the "functional training" side of your gym and set it up a couple of inches in front of your toe and squat without knocking it over. Also, if you think about pressing your toes into the floor as you descend and come up, it'll help you maintain a straight bar path.