Unpack kernel to a temporary directory