Minor fix to allow output path without ending slash