Fixes #4024: correct the path for promises generation with relay