rollback to use sh -c to start rails, since in some platform spawn gets issue when launching
abstract rails_command builder into a private method