Replace deprecated command make_directory

It was marked as deprecated by CMake 2.6 or even earlier.