Patch for proper semantics around trailing '/' on source directories.