Index: branches/release-29/lib/MT/App/CMS.pm
===================================================================
--- branches/release-29/lib/MT/App/CMS.pm (revision 1319)
+++ branches/release-29/lib/MT/App/CMS.pm (revision 1334)
@@ -7168,5 +7168,6 @@
                 $cwd = $ENV{DOCUMENT_ROOT} || $app->mt_dir;
             }
-            $cwd = File::Spec->canonpath($cwd);
+            $cwd = File::Spec->catdir($cwd, 'BLOG-NAME'); # for including the end of directory separator
+            $cwd =~ s!BLOG-NAME\z!!;                      # canonpath() remove it
             $cwd =~ s!([\\/])cgi(?:-bin)?([\\/].*)?$!$1!;
             $cwd =~ s!([\\/])mt[\\/]?$!$1!i;
