Rakefile: Make homedir detection work on 1.8