Correctly computing the release dir depending on relx's version

relx introduced a breaking change in v1: the output doesn't have the same structure
see https://github.com/erlware/relx/releases/tag/v1.0.0