Make command execution in vagrant-helper more robust

Closes #696

@ppp0 please review