buildpack: move copy of version file to earlier in build process