--- /tmp/locale.module	2010-11-22 10:55:40.000000000 +0100
+++ modules/locale/locale.module	2010-11-22 11:20:59.000000000 +0100
@@ -497,7 +497,7 @@
 function locale_update_js_files() {
   global $language;
 
-  $dir = file_create_path(variable_get('locale_js_directory', 'languages'));
+  $dir = conf_path() .'/files/' . variable_get('locale_js_directory', 'languages');
   $parsed = variable_get('javascript_parsed', array());
 
   // The first three parameters are NULL in order to get an array with all
