fix optimist dependency