Fixing list index error for some AMIs

The data returned in rd_data[0]['blockDeviceMapping']['item'] is sometimes a string (such as in ami-642bba0d, a CentOS image) and sometimes a list (such as in ami-10314d79, an Ubuntu image). Handle it appropriately.