Support recent version of Packer (v0.5.1)

A little bit of change to support recent version of Packer.
Please review and consider merge.

Fixed for Packer v0.5.1. It works for VirtualBox 4.3.6. As for VMware, it is not tested yet.