Fix rake dependency to work with ruby 1.8 and 1.9+