easier way to choose between latest and stable, some build script fixes