Added fix to get lastest patch version of rails.