Make update hook work with rvm-installed ruby

Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>