Use Ruby library instead of unix command line