Fix createDirectoryIfMissing to not throw if the dir got deleted