Bug fixing: analyze --resume command with no --output-dir flag was faili...

...ng
we could add an additional check that the resulting name doesn't surpass the length limit