make path_add more correct for dash