Compare cellar and prefix against constants