Fix "directory already exists" error