Ok, I see where that is going wrong. The logic to retrieve the default datastore does validate it actually has a datastore object, that's why its retrieving a folder instead. It would be better if we could use the datastore collection on that object, but that collection is not guaranteed to be available according to the [vSphere API docs for the Datacenter ManagedObject](http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.Datacenter.html)).

I'll need to fix that, or better yet fix the other behaviors around working in a multi-datacenter, multi-host environment in order for you to get anything but the behavior you are seeing. That is going to need some thought.