support internal sd and external sd

thanks to mahirkukreja