Allow building specific version in script.
Fixed read call in build script.