fix bug where invalid position file was required and not optional when using --contig-dir