Improved arch and OS detection. Updating version.