Swap in ruby calls for system calls