Fixing CSV writer to write to CWD when no CSV path is configured
Fixing warnings