Change condition to get ec2 instance name tag value. Fix [#1].