unlokibootimg: Add loki detection function