Add support for octal, hexadecimal in restore.pl script.