Added condition for file upload by capistrano.