Fix bug in capistrano2 task.