Fix permission denied error with image-if.sh writing to /mnt/etc/network/interfaces