Creating directory for results file. Fixes issue 6520