fix tab complete function to exclude completion at beginning of line