Uses correct promises

Using `Promise.promisify`, the code becomes clearer.