Improved version handling for building manual/website/tutorials [skip ci].