tracefile: Converted to perl. Deals correctly with files containing space.