simplify demofile filename parsing & fix wx assertions at start