--- tar.module
+++ (clipboard)
@@ -83,7 +83,9 @@
 	  
 	    // Create archive
 	    // @todo security
-	    `tar -$o "$filepath" "$dir"`;
+	    $parent_dir = dirname($dir);
+	    $dirname = basename($dir);
+	    `tar -$o "$filepath" -C "$parent_dir" "$dirname"`;
 
 	    // Return the newly created tar filepath
 	    return $filepath;
