fixed latex export to include backgrounds from homedir on Mac and Linux