Remove file path operations from C code.

Perform this in R instead as it's better tested.