Fixed a small bug in the sd card script