A hard-coded list of known browsers would almost certainly work. There aren't that many of them. Or better, a list of the common support files that get installed alongside the main browser executable(s), so you can't just rename the main one and have it work.
Anything cleverer than that is about as technical as removing the custom OS and installing standard Sailfish.