Better SS deploy parsing, and hack to fix state machine not transitioning at end of file