Updated asielib and fixed tape drive state synchronization