Use either ```join(abspath(output_dir), '')``` or ```os.sep```.