Makes all intermediate directories in case of issues