Sanitize path to master file when reading preprint.json

We 1) expand user, 2) expand variables and 3) remove a leading "./" from
the path.

The latter is crucial for a latex git diff because otherwise it chokes
on paths with a leading "./". These tend to be made by the `preprint
init` command.