In fact, your knees are out too far and you are trying to keep your shins too vertical. The position they want to attain at the bottom of the squat are where they should be. Don't push your knees out so hard and get your knees further forward by the time you are halfway down. This may result in you being slightly more upright. I predict that will help with your problem.