Fix: Creating directory for ranking file export if it if does not exist

Fix: Creating directory for ranking file export if it if does not exist