Bug fixing: sessions file argument reference was wrong
Refactoring command retrieval and parsing in --resume and regular calls