Made sure log and output folders were created.