Update Rail tie/engine check for Rails 4.