Fixed dir name collision.

Fixed an issue where a transfer creation with the transfer API that
has the name name as another results in a directory name collision.