More robust determination of deployed revision [cap3]