Create dirs *before* using them :-P