Fixed os-import image scripts, that were missing $file vars