mkcloud: move mac address computation