auto-completion for paths when sending file & improved auto-complete algorithm to do partial matches