Broke restart command with main program renaming

Tested and works fine.