add OS check to PageantAgent