Fix ruby 1.8.7 support by borrowing from ruby 1.9's Dir::Tmpname.make_tmpname