Version check rewritten. Now works on amazon servers too.