Fixed NullReferenceException when capturing the state with a paused job. Added a button to create the work directory.