Restrict rake so it installs on 1.8.7
Explicitly use current ruby to syntax check deploy hooks

Shelling out to just `ruby` fails if there is no system-wide ruby
installed, and the ruby running serverside is not in the PATH.

Using the current ruby also makes sure that deploy hooks are syntax
checked with the version they will actually be ran with.