Try to detect OS and ARCH. Also cache downloaded binary.