[eclass] Use appropriate source directory depending on version wrt bug #516522.

Needs improvement later as further upstream releases are made.