I understand that the path is hardcoded, but is strange that also the device is hardcoded, is more logic that the program search for the file in the directory where he is… but is not the case.
The practical solution is to have the sd not write protected 🙁