Added compatibility for ruby 1.8.7

* Monkeypatched `Dir` to include `home`
* Changed params for proc
rename the file to ruby18.rb