use Dir.home for ruby 1.9+
Merge pull request #1320 from heroku/homedir

use Dir.home for ruby 1.9+