Change capistrano recipe to detect correct folder depending on Rails version

Now Capistrano recipe will work with Rails 4 as well.