Fixing an issue with SD card write permissions