Directory auto-complete.

For this, look into filepath.Split or filepath.SplitList instead of juggling the separator and indexes manually.