Handle version import correctly on unbuilt source (closes gh-1108)