fixes missing first cd and powershell autocomplete

- there was a race with the first `cd` command from the console that caused the file explorer to miss it.

- also fixing #1181 for prepending `.\` to executable