diff --git a/plugins/FeedsPlugin.inc b/plugins/FeedsPlugin.inc
index fa1746bcfec505ad080bf5d86047d114eefd018c..be833930960023cacd520b95f5b6000fd0ccc29f 100644
--- a/plugins/FeedsPlugin.inc
+++ b/plugins/FeedsPlugin.inc
@@ -97,7 +97,7 @@ abstract class FeedsPlugin extends FeedsConfigurable implements FeedsSourceInter
       $files = drupal_system_listing('/.*\.inc$/', $path, 'name', 0);
       foreach ($files as $file) {
         if (strstr($file->uri, '/mappers/')) {
-          require_once("./$file->uri");
+          require_once(DRUPAL_ROOT . '/' . $file->uri);
         }
       }
     }
diff --git a/tests/feeds_mapper_path.test b/tests/feeds_mapper_path.test
index 0106192797dcfe225739fafc18b9dc634d7ee363..4f5442af0f8fc82f8e9ae734526bf837443d5f13 100644
--- a/tests/feeds_mapper_path.test
+++ b/tests/feeds_mapper_path.test
@@ -86,6 +86,20 @@ class FeedsMapperPathTestCase extends FeedsMapperTestCase {
     $this->setPlugin('path_test', 'FeedsFileFetcher');
     $this->setPlugin('path_test', 'FeedsCSVParser');
     $this->setPlugin('path_test', 'FeedsTermProcessor');
+
+    // Turn on update existing.
+    $this->setSettings('path_test', 'FeedsTermProcessor', array('update_existing' => 2));
+
+    // Create vocabulary.
+    $edit = array(
+      'name' => 'Addams vocabulary',
+      'machine_name' => 'addams',
+    );
+    $this->drupalPost('admin/structure/taxonomy/add', $edit, t('Save'));
+
+    $this->setSettings('path_test', 'FeedsTermProcessor', array('vocabulary' => 'addams'));
+
+    // Add mappings.
     $this->addMappings('path_test', array(
       array(
         'source' => 'Title',
@@ -102,18 +116,6 @@ class FeedsMapperPathTestCase extends FeedsMapperTestCase {
       ),
     ));
 
-    // Turn on update existing.
-    $this->setSettings('path_test', 'FeedsTermProcessor', array('update_existing' => 2));
-
-    // Create vocabulary.
-    $edit = array(
-      'name' => 'Addams vocabulary',
-      'machine_name' => 'addams',
-    );
-    $this->drupalPost('admin/structure/taxonomy/add', $edit, t('Save'));
-
-    $this->setSettings('path_test', 'FeedsTermProcessor', array('vocabulary' => 'addams'));
-
     // Import RSS file.
     $this->importFile('path_test', $this->absolutePath() . '/tests/feeds/path_alias.csv');
     $this->assertText('Created 9 terms');