do not log blank commands in addition to duplicate ones
add a trailing / to tab-completed symlinks that are directories