fixes missing first cd and powershell autocomplete, fixes #1181