Make script now generates output directories if they don't exist