Set permissions on VM files. Fixes [067fea7873]