sdcard build script fixed