fix check_kernel_offset working directory