fixed improper behavior for nonexistent directories
prevent errant output during tab completion