1125132: Label does not change to Attaching on Fristboot progress bar

Better check for changing title of window
Moved state change so it would work in GUI and Firstboot