It's not personal. They strike at scent, heat, and movement.
This is a pretty good video of how to handle defensive snakes: https://www.youtube.com/watch?v=VDjlg1njtfY
Also something I've found with mine is not to let yourself be backlit. Watch your shadow - if it lands on the snake it will instinctively consider that a threat from a predator.