Create directories as required