--- wget.inc.bkup	2009-12-27 16:58:32.000000000 -0600
+++ wget.inc	2009-12-27 17:03:20.000000000 -0600
@@ -21,11 +21,11 @@ function package_handler_install_project
   $fullpath = $path . $filename;
 
   // Download it.
-  if (!drush_shell_exec("wget " . $info['download_link'])) {
+  if (!drush_shell_exec("cd $path; wget " . $info['download_link'])) {
     drush_shell_exec("curl -O " . $info['download_link']);
   }
 
-  if (file_exists($filename) || drush_get_context('DRUSH_SIMULATE')) {
+  if (file_exists($fullpath) || drush_get_context('DRUSH_SIMULATE')) {
     drush_log("Downloading " . $filename . " was successful.");
   }
   else {
@@ -33,8 +33,8 @@ function package_handler_install_project
   }
 
   // Check Md5 hash
-  if (md5_file($filename) != $info['mdhash'] && !drush_get_context('DRUSH_SIMULATE')) {
-    drush_op('unlink', $filename);
+  if (md5_file($fullpath) != $info['mdhash'] && !drush_get_context('DRUSH_SIMULATE')) {
+    drush_op('unlink', $fullpath);
     return drush_set_error('DRUSH_PM_FILE_CORRUPT', "File $filename is corrupt (wrong md5 checksum).");
   }
   else {
@@ -42,8 +42,8 @@ function package_handler_install_project
   }
 
   // Decompress
-  drush_shell_exec("gzip -d " . $filename);
-  $tarpath = substr($filename, 0, strlen($filename)-3);
+  drush_shell_exec("gzip -d " . $fullpath);
+  $tarpath = substr($fullpath, 0, strlen($fullpath)-3);
   // Untar
   drush_shell_exec("tar -xf $tarpath -C \"$path\"");
   // We're not using tar -xzf because that's not working on windows...
