HUE-1221 [pig] Load back an executed script

Fixed several bugs with executed script logs and loading