Set up qrcode caching in /tmp for read-only filesystems
Added support for read-only filesystems for QR codes