fix file number counting when other cmdline args are given