Modify more pluging code to use shared guestfs utility functions