use more of the path when ripping files

The output paths now more closely match the input paths, making them a
lot easier to sort through.