Fix bash completion on osx

The osx version of sed does not support \s so replace uses of it
with [ 	] and clean up the regex a bit.

Change-Id: Ic6fd2e4234352ddb8ec70d42b44ad00a3906db0e
Merge "Fix bash completion on osx"