Bugfix in classes genmapping.

Must use source's relpath.