Fix nvidia-settings parser

This is a resubmission of pull req #4430, against Gotham. It avoids leaving nvidia-settings zombies on a refresh rate change, and cleans up some related dead code.