Script Editor: Fixed last saved/opened directory not saved correctly.