Fix Rails application name retreiving