Fix railties dependency