Fixed really bad error with "cat_paths"

Mutable strings are not the friendliest beasts -- corrected a heisenbug
with cat_paths by adding an intermediate char* as a buffer.