The only way to completely fix it would be to have LSB mandate everything, reducing the diversity of Linux distributions to zero. As long as there is any variation, you will have to take it into account somewhere.
Distributions aren't as much of a problem as this discussion makes them out to be.