use bash scripting in rails app