Adapt version generation to new directory layout