Simplify code for checking best refresh rate on linux, which I added previously.
Fixed accidentaly noticed typo in comment