Change way we calculate backend_id for bare metals

Because backend.title can be changed, but the machine's name
can't.