Fix remote and readme detection