Write/use get_dump_file() function

There were two places in the code to generate dump file name.
Put that code into function and use it.

In addition, change the DEF_DUMPDIR to the same value as in vz.conf.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
5 files changed