fixed lua scripts creation on SD card it they executed through 'dofile' (Android)

If one of the script execute another script through 'dofile' function, framework creates a copy of script on SD card and loads it, thus require WRITE_EXTERNAL_STORAGE permission. This commit fixes that.