Moved directory exists change to the right function

Directory exists check now in CreateDirectoryAbsolute as per issue #3061
for pull request #3067.