set gem versions compatible with rails 2.3.5 and used patched capistrano gem