Fix bugs on building VMWare box