Check deploy:failed definition for Capistrano 3 pre 3.1 release

'deploy:failed' is only pre-defined in Capistrano 3.1.