Fix detecting sagecell branch on remote and tweak logging.