fix a bug, which causes C-t not work if LBUFFER is empty.
find command requires a path in OSX

Default empty dir variable to * using ${dir:-*}. This also
produces better looking output.