Fix quoting issues if input file paths contain spaces.