Adapt library to changes in favour of Promises in node-firefoxos-cli