--- tw/tw_import/tw_import_delimited.module.org	2009-09-04 23:24:03.000000000 +0200
+++ tw/tw_import/tw_import_delimited.module	2009-09-04 23:23:35.000000000 +0200
@@ -181,5 +181,10 @@
  */
 function _tw_delimited_file_name($file) {
-  $dir = str_replace('\\', '/', getcwd()) . '/' . file_directory_path() . '/tw_delimited';
+  $dir = "";
+  if (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PUBLIC) {
+    $dir .= str_replace('\\', '/', getcwd()) . '/';
+  }
+  $dir .=  file_directory_path() . '/tw_delimited';
+
   if (file_check_directory($dir, TRUE)) {
     return $dir . '/' . $file;
