Additional logic for up-down arrows indexing
Additional logic for up-down arrows indexing

Also fixes tab completion for paths.

jsoref/PowerShell,PaulHigin/PowerShell,PaulHigin/PowerShell,JamesWTruher/PowerShell-1,KarolKaczmarek/PowerShell,bmanikm/PowerShell,KarolKaczmarek/PowerShell,bingbing8/PowerShell,JamesWTruher/PowerShell-1,TravisEz13/PowerShell,JamesWTruher/PowerShell-1,daxian-dbw/PowerShell,jsoref/PowerShell,bmanikm/PowerShell,TravisEz13/PowerShell,bingbing8/PowerShell,kmosher/PowerShell,TravisEz13/PowerShell,daxian-dbw/PowerShell,KarolKaczmarek/PowerShell,jsoref/PowerShell,kmosher/PowerShell,KarolKaczmarek/PowerShell,kmosher/PowerShell,kmosher/PowerShell,daxian-dbw/PowerShell,TravisEz13/PowerShell,jsoref/PowerShell,bingbing8/PowerShell,KarolKaczmarek/PowerShell,jsoref/PowerShell,bmanikm/PowerShell,daxian-dbw/PowerShell,PaulHigin/PowerShell,kmosher/PowerShell,bmanikm/PowerShell,PaulHigin/PowerShell,bmanikm/PowerShell,bingbing8/PowerShell,JamesWTruher/PowerShell-1,bingbing8/PowerShell