fixed issues with latest/stable version detection