Create scratch directory if it doesn't exist