Fixes a bug with filename extension during .vdi creation.

Change-Id: Ib1a7b0256d8961946e844f265667053e5e422d9b
Closes-Bug: 1376429
Merge "Fixes a bug with filename extension during .vdi creation."