fix ec2 images search 

that breaks due to an image without name (id=ami-00cee674 maybe others as well). Also small optimization on code -list comprehension instead of for loop