added rails source detection method rails? and remove some superfluous output when in rails application.
added rails source detection method rails? and remove some superfluous output when in rails application.

turn-project/turn,wolf9s/turn,wolf9s/turn,turn-project/turn