Fix bug caused by improper output path handling