Check the railties dependencies instead of rails dependencies