Try to create metrics root directory if missing

This change tries to be nice and create the metrics directoy first
before erroring out.

@matttproud @juliusv @discordianfish