Fixed Chrome and Firefox detection in Windows 7/8

Also: converted switch statement to string.equals (ugly, but unfortunately correct - at least according to IDEA which refused to run the project otherwise), and fixed some spacing (and a typo)

I've tested it in Windows 8.1/64 bit (under a domain, but that doesn't really matter) and with Chrome and Firefox installed (Chrome does have RES, Firefox doesn't)