Added compatibility for ruby 1.8.7

* Monkeypatched `Dir` to include `home`
* Changed params for proc
comparing strings is not good