Fix check for rvm:hook task