Refactored adaptec's part: made scripts multi-adapter compatible