fix "dir" flag
examples