Changes Dir.home -> File.expand_path('~')

`Dir.home` is not available on ruby 1.8.7 i.e. versions of OSX before Mavericks. This change uses the older but uglier `File.expand_path('~')`