*
* @return build, or -1 if could not retrieve information
* @throws RestfulAPIException if the REST API could not be accessed
*/
private static String calculateInstall() throws RestfulAPIException {
File spoutcraft = new File((new SpoutcraftDirectories()).getBinDir(), "spoutcraft.jar");
if (spoutcraft.exists()) {
String md5 = MD5Utils.getMD5(spoutcraft);
InputStream stream = null;
String url = RestAPI.getMD5URL(md5);
try {