added for loop to prevent permission denied errors on /sdcard/ during boot