Use pkg_version accessor
Compare cellar and prefix against constants
Simplify early return condition

Improvements to formula/bottle integration means we can be less
defensive here.
pebble-sdk 2.3

Closes #30836.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
pebble-sdk: update 2.3 bottle.
mercury 14.01
mercury: update 14.01 bottle.