Fix Rails application name obtaining