utils: use absolute paths when opening files on Windows