cbmdos: only write dir entry when -n is given