Nail gluing machine