Proprietary software is no better, so I won't glorify them either. There is however the potential for disciplinary action against bad coding habits in the workforce where there is virtually none with open source.
But, that's my point. IMO, from what I have seen over the years, proprietary code is no better, nor any worse, on average.
You've seen someone disciplined for "bad code"? Really?!? Wow, I'd love to hear that story. It's like someone seeing the Sasquatch!
In my experience, if it ships with minimal impact on support, it's considered "good" in most commercial settings.
Lots of code can get fixed in FOSS in way not available in proprietary. Hell, you just admitted to making your own fixes!