update bin scripts for rails 4.x