Better compatibility with thin and rspec in Rails environment.