Update discover.sh

Fixed problem with vmware resource scripts.