Modified external/internal SD swap script