vcsh: Improve error handling of clone()

May fix https://github.com/RichiH/vcsh/issues/122