replace system call with ruby method
Merge pull request #179 from NARKOZ/patch-0

replace system call with ruby method