Fix when using an exact executable when opening a file