Create directories before using them