diff --git a/drush_cleanup.drush.inc b/drush_cleanup.drush.inc
index 1e8c28f..51a6dbe 100644
--- a/drush_cleanup.drush.inc
+++ b/drush_cleanup.drush.inc
@@ -70,7 +70,7 @@ function drush_cleanup_drush_help($section) {
 function drush_cleanup_files_list() {
   $files = array();
   
-  $drupal_directory = _drush_core_directory();
+  $drupal_directory = rtrim(_drush_core_directory(), '/');
   // Make sure the directory doesn't equal "/".
   if ($drupal_directory == '/' || empty($drupal_directory)) {
   	drush_log(dt('Your Drupal folder appears to be set up in an unexpected way and may need to be be cleaned up manually.'), 'warning');
