'cap' func to temporarily replace system files

* to replace: cap bin/ruby /usr/bin/ruby
* to restore: cap /usr/bin/ruby