Adapt implementation to the new promises paradigm use by node-firefoxos-cli