Totally agree with the sentiments here that this is a first pass and not for production use. In fact, that's exactly the intent of this project. It's meant to be a very first pass for people to get a sense of what's possible with simple off the shelf tools and a basic understanding of CV. We expect students to do this within 7 days of starting the program!
There will be a far more advanced lane detection project further in the Nanodegree that is intended to cover all the use cases that people have pointed out here.