Fix for environment-specific application name

E.g. when you do ```set :application, "..."``` in ```config/deploy/staging.rb```
Merge pull request #1 from glebtv/patch-1

Fix for environment-specific application name