Change metrics:flay task to work under mri 2.0
Move metrics block in metrics tasks to the outer scope