fixed minor bug in restore_dir, added restore_dir to mktest