Use absolute paths for opening files where possible

Works around various 3rd party nasties that change the working directory and don't set it back properly.