improvement to reset_vhost script

[ci skip]