Add support for same style of promises gulp uses.