Fix test regex to make .exe optional