fix grabbing kernel/ramdisk
diff --git a/stack.sh b/stack.sh
index 25a6579..6956f9f 100755
--- a/stack.sh
+++ b/stack.sh
@@ -576,13 +576,9 @@
     tar -zxf $FILES/tty.tgz -C $FILES/images
 
     # add a debugging images to glance
-    KERNEL_ID=glance add -A $SERVICE_TOKEN name="tty-kernel" is_public=true \
-        container_format=aki disk_format=aki < $FILES/images/aki-tty/image
-    RAMDISK_ID=glance add -A $SERVICE_TOKEN name="tty-ramdisk" is_public=true \
-        container_format=ari disk_format=ari < $FILES/images/ari-tty/image
-    glance add -A $SERVICE_TOKEN name="tty" is_public=true container_format=ami \
-        disk_format=ami kernel_id=$KERNEL_ID \
-        ramdisk_id=$RAMDISK_ID < $FILES/images/ami-tty/image
+    KERNEL_ID=`glance add -A $SERVICE_TOKEN name="tty-kernel" is_public=true container_format=aki disk_format=aki < $FILES/images/aki-tty/image`
+    RAMDISK_ID=`glance add -A $SERVICE_TOKEN name="tty-ramdisk" is_public=true container_format=ari disk_format=ari < $FILES/images/ari-tty/image`
+    glance add -A $SERVICE_TOKEN name="tty" is_public=true container_format=ami disk_format=ami kernel_id=$KERNEL_ID ramdisk_id=$RAMDISK_ID < $FILES/images/ami-tty/image
 fi
 
 # Using the cloud