Automatically determine latest version