fixed tab completion improperly adding slash to non directories (-p)