Adds ability to record paths.

If the paths directory is left as an empty string the local paths are
used instead.