workaround for mitchellh/vagrant#1291

this is the patch I stuck in #1291 as a pull request, in case you are happy for it to go straight in.