Dynamically find the factories file

Rather than relying on a setting and possible override, this update will dynamically find the factories file under the spec/ directory. This is especially useful if moving between different projects which store the factories.rb file in different places.