changed to look for older versions of active support and active record so as to maintain ruby 1.8.7 compatibility