Updated code for capistrano deploy