autobuilder: fix extracting version from buildName

The code was expecting a path relative to the build dir, not the
work dir.