Don't call path.exists if output_dir is None
Merge pull request #176 from egbertbouman/path_fix

Don't call path.exists if output_dir is None