[US11524] Added an optional path param to find_default_by_name.

Also made the tests work on Ruby 1.9