"Most of the time this is determined by if they have technical people in the leadership ranks or not.", can you elaborate a bit on this ?
According to my experience, management has always viewed software as binary world: it works or it does not.
About your last sentence, I was about to but gave myself a reason no to; instead of trying to change things, I simply leave them the way they are and stop "bitching" about it. Either way, I will see if good engineering practices are really important or if a team can do without it (and what the potential cost would be).
Now, my only focus is becoming good at spotting bugs, fixing them and implementing features with fewest lines possible (a.k.a Spartan programming) :)