if result dir doesn't exist, create it