Add back get_arch/os for backward compatibility

The removal of get_os method breaks many of our autobuild scripts.
It would be nice if you can add them back and release a new version for gem.