fix bug where not using --outHalDir option caused problems for some input paths