Add support for mode and owner/group settings in VM#inject_file