Fix root detection

spec/spec_helper and Rakefile are at differend locations in the
directory tree
Do access flay confuration once metrics::flay task is run

The prior implementation wasted lots of cycles also when flay was not
run.